﻿export default [
  {
    "path": "/",
    "redirect": "/dashboard/analysis"
  },
  {
    "path": "/user",
    "layout": false,
    "routes": [
      {
        "path": "/user/login",
        "layout": false,
        "name": "login",
        "component": "./user/Login"
      },
      {
        "path": "/user",
        "redirect": "/user/login"
      },
    ]
  },
  {
    "name": "公司信息",
    "path": "/company",
    "component": "./company",
    "access": "hasAuth",
  },
  {
    "name": "新闻资讯",
    "path": "/news",
    "component": "./news/list",
    "access": "hasAuth",
  },
  {
    "name": "系统管理",
    "path": "/system/manager",
    "routes": [
      {
        "name": "用户",
        "path": "/system/manager/user",
        "routes": [
          {
            "name": "用户",
            "path": "/system/manager/user",
            "hideInMenu": true,
            "component": "./system/user/list"
          }
        ],
        "access": "hasAuth"
      },
      {
        "name": "角色",
        "path": "/system/manager/role",
        "routes": [
          {
            "name": "角色",
            "path": "/system/manager/role",
            "hideInMenu": true,
            "component": "./system/role/list/index"
          }
        ],
        "access": "hasAuth"
      },
      {
        "name": "字典",
        "path": "/system/manager/dict",
        "routes": [
          {
            "name": "字典",
            "path": "/system/manager/dict",
            "hideInMenu": true,
            "component": "./system/dict/type/list"
          },
          {
            "name": "字典值",
            "path": "/system/manager/dict/value",
            "hideInMenu": true,
            "component": "./system/dict/value/list"
          }
        ],
        "access": "hasAuth"
      },
      {
        "name": "菜单",
        "path": "/system/manager/menu",
        "routes": [
          {
            "name": "菜单",
            "path": "/system/manager/menu",
            "hideInMenu": true,
            "component": "./system/menu/list"
          },
          {
            "name": "按钮权限",
            "path": "/system/manager/menu/authButton",
            "hideInMenu": true,
            "component": "./system/menu/authButton"
          }
        ],
        "access": "hasAuth"
      }
    ]
  },
  {
    "name": "系统工具",
    "path": "/system/tool",
    "routes": [
      {
        "name": "代码生成",
        "path": "/system/tool/gen",
        "routes": [
          {
            "name": "代码生成",
            "path": "/system/tool/gen",
            "hideInMenu": true,
            "component": "./system/tool/gen/list"
          },
          {
            "name": "详情",
            "path": "/system/tool/gen/detail",
            "hideInMenu": true,
            "component": "./system/tool/gen/detail"
          },
          {
            "name": "新增表",
            "path": "/system/tool/gen/addTable",
            "hideInMenu": true,
            "component": "./system/tool/gen/add"
          }
        ],
        "access": "hasAuth"
      },
      {
        "name": "请求日志",
        "path": "/system/tool/request/log",
        "routes": [
          {
            "name": "请求日志",
            "path": "/system/tool/request/log",
            "hideInMenu": true,
            "component": "./system/tool/requestLog/list"
          }
        ],
        "access": "hasAuth"
      },
      {
        "name": "docker镜像",
        "path": "/system/tool/docker/image",
        "routes": [
          {
            "name": "docker镜像",
            "path": "/system/tool/docker/image",
            "hideInMenu": true,
            "component": "./system/tool/harbor/artifact/index.tsx"
          }
        ],
        "access": "hasAuth"
      }
    ]
  },
  {
    "component": "404"
  }
]


